/**
 * @filename:SupplimentDetail Dec 20, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(补料详细实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_suppliment_material_detail")
@ApiModel(value="t_prd_suppliment_material_detail对象", description="补料详细表")
public class SupplimentDetail extends Model<SupplimentDetail> {

	private static final long serialVersionUID = 1703040616341466L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "主键")
    private Long id;
    
    @TableField(value = "entryId") 	
	@ApiModelProperty(name = "entryId" , value = "生产补料单表头id")
    private Long entryId;
    
    @TableField(value = "materialNo") 	
	@ApiModelProperty(name = "materialNo" , value = "物料编码")
    private String materialNo;
    
    @TableField(value = "materialName") 	
	@ApiModelProperty(name = "materialName" , value = "物料名称")
    private String materialName;
    
    @TableField(value = "specification") 	
	@ApiModelProperty(name = "specification" , value = "物料规格")
    private String specification;
    
    @TableField(value = "flot") 	
	@ApiModelProperty(name = "flot" , value = "批次")
    private String flot;
    
    @TableField(value = "produceDate") 	
	@ApiModelProperty(name = "produceDate" , value = "生产日期")
    private Date produceDate;
    
    @TableField(value = "expiryDate") 	
	@ApiModelProperty(name = "expiryDate" , value = "有效期至")
    private Date expiryDate;
    
    @TableField(value = "unit") 	
	@ApiModelProperty(name = "unit" , value = "单位")
    private String unit;
    
    @TableField(value = "stockNo") 	
	@ApiModelProperty(name = "stockNo" , value = "仓库")
    private String stockNo;
    
    @TableField(value = "workShop") 	
	@ApiModelProperty(name = "workShop" , value = "生产车间")
    private String workShop;
    
    @TableField(value = "taskBillNo") 	
	@ApiModelProperty(name = "taskBillNo" , value = "生产订单单据编号")
    private String taskBillNo;
    
    @TableField(value = "ppBomNo") 	
	@ApiModelProperty(name = "ppBomNo" , value = "生产用料清单单据编号")
    private String ppBomNo;
    
    @TableField(value = "createTime") 	
	@ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;
    
    @TableField(value = "createUserName") 	
	@ApiModelProperty(name = "createUserName" , value = "创建人")
    private String createUserName;
    
    @TableField(value = "createUserId") 	
	@ApiModelProperty(name = "createUserId" , value = "创建人id")
    private Long createUserId;


    @TableField(value = "updateUserName")
    @ApiModelProperty(name = "updateUserName" , value = "修改人")
    private String updateUserName;

    @TableField(value = "updateTime")
    @ApiModelProperty(name = "updateTime" , value = "修改时间")
    private Date updateTime;

    @TableField(value = "isFlot")
    @ApiModelProperty(name = "isFlot" , value = "是否启用批次")
    private Boolean isFlot;


    @TableField(value = "isProduce")
    @ApiModelProperty(name = "isProduce" , value = "是否启用保质期")
    private Boolean isProduce;

    @TableField(value = "count")
    @ApiModelProperty(name = "count" , value = "数量")
    private Double count;


    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
